<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script src="${pageContext.request.contextPath}/script/des.js" charset="UTF-8" type="text/javascript"></script>
<script type="text/javascript">
function changePwd_submit(obj){
	var oldPass = $("#oldPassword");
	var cpPass = $("#cp_newPassword");
	var rpPass = $("#rp_newPassword");
	if(oldPass.val()!="" && cpPass!="" && rpPass!="" && cpPass!=rpPass){
		oldPass.val(encrypt(oldPass.val(),"${csrfToken}"));
		cpPass.val(encrypt(cpPass.val(),"${csrfToken}"));
		rpPass.val(encrypt(rpPass.val(),"${csrfToken}"));
	}
	return validateCallback(obj, dialogAjaxDone);
}

</script>
<div class="pageContent">
	<form method="post" action="insideUser_changePwd.action"
		class="pageForm required-validate"
		onsubmit="return changePwd_submit(this)">
		<div class="pageFormContent" layoutH="58">
			<div class="unit">
				<label>旧密码：</label> 
				<input type="password" name="oldPassword" id="oldPassword" autocomplete="off"
					size="30" minlength="6" maxlength="60" class="required" />
			</div>
			<div class="unit">
				<label>新密码：</label> 
				<input type="password" id="cp_newPassword" autocomplete="off"
					name="newPassword" size="30" minlength="6" maxlength="60"
					class="required alphanumeric" />
			</div>
			<div class="unit">
				<label>重复输入新密码：</label> 
				<input type="password" name="rnewPassword" id="rp_newPassword" autocomplete="off"
					size="30" equalTo="#cp_newPassword" class="required alphanumeric" />
			</div>

		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
		<input type="hidden" value="${csrfToken}" name="CSRFToken">
	</form>

</div>